import { i18nRender } from '@/locales';

const sceneUtils = {
  getSceneIcon(sceneType) {
    switch (sceneType) {
      case 'SMB':
        return {
          icon: 'ic-bangongchangjing',
          cls: 'office',
          txt: i18nRender('common.smb'),
        };
      case 'HOTEL':
        return {
          icon: 'ic-prof-office',
          cls: 'hotel',
          txt: i18nRender('common.hotel'),
        };
      case 'VILLA':
        return {
          icon: 'ic-prof-common',
          cls: 'home',
          txt: i18nRender('common.villa'),
        };
      case 'EDU':
        return {
          icon: 'ic-prof-common',
          cls: 'school',
          txt: i18nRender('common.edu'),
        };
      case 'STORE':
        return {
          icon: 'ic-prof-common',
          cls: 'restaurant',
          txt: i18nRender('common.store'),
        };
      case 'MONITOR':
        return {
          icon: 'ic-prof-outdoor',
          cls: 'factory',
          txt: i18nRender('common.monitor'),
        };
      case 'APARTMENT':
        return {
          icon: 'ic-prof-common',
          cls: 'residence',
          txt: i18nRender('common.apartment'),
        };
      case 'CHAIN':
        return {
          icon: 'ic-prof-common',
          cls: 'shop',
          txt: i18nRender('common.chain'),
        };
      case 'COMMON':
      default:
        return {
          icon: 'ic-prof-common',
          cls: 'common',
          txt: i18nRender('common.common'),
        };
    }
  },
};

export { sceneUtils };
